home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8496 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C++ source text default
98% file C source text default
97% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 33 2e 64 69 67 65 |Path: ne|ws3.dige|
|00000010| 78 2e 6e 65 74 21 64 63 | 63 31 31 37 34 38 2e 73 |x.net!dc|c11748.s|
|00000020| 6c 69 70 2e 64 69 67 65 | 78 2e 6e 65 74 0a 46 72 |lip.dige|x.net.Fr|
|00000030| 6f 6d 3a 20 79 61 6d 69 | 40 64 69 67 65 78 2e 6e |om: yami|@digex.n|
|00000040| 65 74 20 28 53 74 65 76 | 65 6e 20 44 2e 20 41 72 |et (Stev|en D. Ar|
|00000050| 6e 6f 6c 64 29 0a 4e 65 | 77 73 67 72 6f 75 70 73 |nold).Ne|wsgroups|
|00000060| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 2b 2b 0a |: comp.l|ang.c++.|
|00000070| 53 75 62 6a 65 63 74 3a | 20 70 72 6f 62 6c 65 6d |Subject:| problem|
|00000080| 3a 20 73 74 61 74 69 63 | 20 64 61 74 61 20 69 6e |: static| data in|
|00000090| 20 63 6c 61 73 73 65 73 | 0a 44 61 74 65 3a 20 53 | classes|.Date: S|
|000000a0| 75 6e 2c 20 31 38 20 46 | 65 62 20 31 39 39 36 20 |un, 18 F|eb 1996 |
|000000b0| 30 31 3a 32 33 3a 32 32 | 20 2d 30 35 30 30 0a 4f |01:23:22| -0500.O|
|000000c0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 49 6e 74 |rganizat|ion: Int|
|000000d0| 65 72 43 6f 6e 20 53 79 | 73 74 65 6d 73 20 43 6f |erCon Sy|stems Co|
|000000e0| 72 70 6f 72 61 74 69 6f | 6e 0a 4d 65 73 73 61 67 |rporatio|n.Messag|
|000000f0| 65 2d 49 44 3a 20 3c 39 | 36 30 32 31 38 30 31 32 |e-ID: <9|60218012|
|00000100| 33 2e 41 41 32 32 30 31 | 30 40 64 63 63 31 31 37 |3.AA2201|0@dcc117|
|00000110| 34 38 2e 73 6c 69 70 2e | 64 69 67 65 78 2e 6e 65 |48.slip.|digex.ne|
|00000120| 74 3e 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 79 61 6d |t>.Reply|-To: yam|
|00000130| 69 40 64 69 67 65 78 2e | 6e 65 74 20 28 53 74 65 |i@digex.|net (Ste|
|00000140| 76 65 6e 20 44 2e 20 41 | 72 6e 6f 6c 64 29 0a 4e |ven D. A|rnold).N|
|00000150| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|00000160| 3a 20 64 63 63 31 31 37 | 34 38 2e 73 6c 69 70 2e |: dcc117|48.slip.|
|00000170| 64 69 67 65 78 2e 6e 65 | 74 0a 4d 69 6d 65 2d 56 |digex.ne|t.Mime-V|
|00000180| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|00000190| 65 6e 74 2d 54 79 70 65 | 3a 20 74 65 78 74 2f 70 |ent-Type|: text/p|
|000001a0| 6c 61 69 6e 3b 20 63 68 | 61 72 73 65 74 3d 55 53 |lain; ch|arset=US|
|000001b0| 2d 41 53 43 49 49 0a 58 | 2d 4e 65 77 73 72 65 61 |-ASCII.X|-Newsrea|
|000001c0| 64 65 72 3a 20 49 6e 74 | 65 72 43 6f 6e 20 54 43 |der: Int|erCon TC|
|000001d0| 50 2f 43 6f 6e 6e 65 63 | 74 20 49 49 20 32 2e 33 |P/Connec|t II 2.3|
|000001e0| 2e 31 0a 0a 48 69 2e 20 | 20 49 20 72 65 76 65 69 |.1..Hi. | I revei|
|000001f0| 77 65 64 20 74 68 65 20 | 46 41 51 20 61 6e 64 20 |wed the |FAQ and |
|00000200| 63 6f 75 6c 64 6e 27 74 | 20 66 69 6e 64 20 61 6e |couldn't| find an|
|00000210| 79 74 68 69 6e 67 20 6f | 62 76 69 6f 75 73 20 61 |ything o|bvious a|
|00000220| 62 6f 75 74 20 74 68 69 | 73 0a 70 72 6f 62 6c 65 |bout thi|s.proble|
|00000230| 6d 2e 20 20 4d 79 20 61 | 70 6f 6c 6f 67 69 65 73 |m. My a|pologies|
|00000240| 20 69 66 20 74 68 69 73 | 20 69 73 20 61 20 73 69 | if this| is a si|
|00000250| 6d 70 6c 65 20 6e 65 77 | 62 69 65 20 70 72 6f 62 |mple new|bie prob|
|00000260| 6c 65 6d 20 74 68 61 74 | 27 73 20 61 73 6b 65 64 |lem that|'s asked|
|00000270| 0a 61 20 6c 6f 74 20 2d | 2d 20 49 27 6d 20 73 74 |.a lot -|- I'm st|
|00000280| 75 6d 70 65 64 2e 0a 0a | 54 68 69 73 20 63 6f 64 |umped...|This cod|
|00000290| 65 20 64 6f 65 73 6e 27 | 74 20 6c 69 6e 6b 2c 20 |e doesn'|t link, |
|000002a0| 65 69 74 68 65 72 20 6f | 6e 20 67 2b 2b 20 6f 6e |either o|n g++ on|
|000002b0| 20 61 20 73 70 61 72 63 | 20 28 53 75 6e 4f 53 20 | a sparc| (SunOS |
|000002c0| 34 2e 31 2e 34 29 20 6f | 72 20 4d 65 74 72 6f 57 |4.1.4) o|r MetroW|
|000002d0| 65 72 6b 73 0a 43 6f 64 | 65 57 61 72 72 69 6f 72 |erks.Cod|eWarrior|
|000002e0| 20 38 20 6f 6e 20 74 68 | 65 20 4d 61 63 2e 20 20 | 8 on th|e Mac. |
|000002f0| 48 65 72 65 27 73 20 74 | 68 65 20 63 6f 6d 70 6c |Here's t|he compl|
|00000300| 65 74 65 20 70 72 6f 67 | 72 61 6d 2c 20 73 68 6f |ete prog|ram, sho|
|00000310| 72 74 20 61 6e 64 20 73 | 77 65 65 74 3a 0a 0a 23 |rt and s|weet:..#|
|00000320| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00000330| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 6c |>.#inclu|de <stdl|
|00000340| 69 62 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ib.h>.#i|nclude <|
|00000350| 74 69 6d 65 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |time.h>.|#include|
|00000360| 20 3c 69 6f 73 74 72 65 | 61 6d 2e 68 3e 0a 0a 63 | <iostre|am.h>..c|
|00000370| 6c 61 73 73 20 73 61 6d | 70 6c 65 0a 7b 0a 20 20 |lass sam|ple.{. |
|00000380| 20 20 20 20 20 20 70 75 | 62 6c 69 63 3a 0a 20 20 | pu|blic:. |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 61 | | sa|
|000003a0| 6d 70 6c 65 28 29 3b 0a | 0a 20 20 20 20 20 20 20 |mple();.|. |
|000003b0| 20 70 72 69 76 61 74 65 | 3a 0a 20 20 20 20 20 20 | private|:. |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 73 74 61 74 69 63 | | static|
|000003d0| 20 69 6e 74 20 63 6f 75 | 6e 74 3b 0a 7d 3b 0a 0a | int cou|nt;.};..|
|000003e0| 73 61 6d 70 6c 65 3a 3a | 73 61 6d 70 6c 65 28 76 |sample::|sample(v|
|000003f0| 6f 69 64 29 0a 7b 0a 20 | 20 20 20 20 20 20 20 2b |oid).{. | +|
|00000400| 2b 63 6f 75 6e 74 3b 0a | 7d 0a 0a 76 6f 69 64 20 |+count;.|}..void |
|00000410| 6d 61 69 6e 28 76 6f 69 | 64 29 0a 7b 0a 20 20 20 |main(voi|d).{. |
|00000420| 20 20 20 20 20 73 61 6d | 70 6c 65 20 20 6f 6e 65 | sam|ple one|
|00000430| 53 61 6d 70 6c 65 3b 0a | 7d 0a 0a 0a 55 6e 64 65 |Sample;.|}...Unde|
|00000440| 72 20 4d 65 74 72 6f 57 | 65 72 6b 73 2c 20 49 20 |r MetroW|erks, I |
|00000450| 67 65 74 20 74 68 65 20 | 65 72 72 6f 72 3a 0a 0a |get the |error:..|
|00000460| 20 20 20 20 20 20 20 20 | 4c 69 6e 6b 20 45 72 72 | |Link Err|
|00000470| 6f 72 20 20 20 3a 20 6e | 65 77 74 65 73 74 2e 63 |or : n|ewtest.c|
|00000480| 70 70 3a 20 27 73 61 6d | 70 6c 65 3a 3a 63 6f 75 |pp: 'sam|ple::cou|
|00000490| 6e 74 27 20 72 65 66 65 | 72 65 6e 63 65 64 20 66 |nt' refe|renced f|
|000004a0| 72 6f 6d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |rom. | |
|000004b0| 20 20 20 20 27 73 61 6d | 70 6c 65 3a 3a 73 61 6d | 'sam|ple::sam|
|000004c0| 70 6c 65 28 29 27 20 69 | 73 20 75 6e 64 65 66 69 |ple()' i|s undefi|
|000004d0| 6e 65 64 2e 0a 0a 55 6e | 64 65 72 20 67 2b 2b 2c |ned...Un|der g++,|
|000004e0| 20 49 20 73 65 65 3a 0a | 0a 20 20 20 20 20 20 20 | I see:.|. |
|000004f0| 20 6c 64 3a 20 55 6e 64 | 65 66 69 6e 65 64 20 73 | ld: Und|efined s|
|00000500| 79 6d 62 6f 6c 0a 20 20 | 20 20 20 20 20 20 73 61 |ymbol. | sa|
|00000510| 6d 70 6c 65 3a 3a 63 6f | 75 6e 74 0a 0a 54 68 65 |mple::co|unt..The|
|00000520| 73 65 20 65 72 72 6f 72 | 73 20 73 6f 75 6e 64 20 |se error|s sound |
|00000530| 76 65 72 79 20 73 69 6d | 69 6c 61 72 2c 20 61 6e |very sim|ilar, an|
|00000540| 64 20 67 69 76 65 6e 20 | 74 68 61 74 20 74 68 65 |d given |that the|
|00000550| 79 20 63 6f 6d 65 20 66 | 72 6f 6d 20 74 77 6f 20 |y come f|rom two |
|00000560| 74 6f 74 61 6c 6c 79 0a | 64 69 66 66 65 72 65 6e |totally.|differen|
|00000570| 74 20 63 6f 6d 70 69 6c | 65 72 73 2c 20 49 20 66 |t compil|ers, I f|
|00000580| 65 65 6c 20 63 65 72 74 | 61 69 6e 20 74 68 69 73 |eel cert|ain this|
|00000590| 20 69 73 20 61 6e 20 65 | 72 72 6f 72 20 6f 66 20 | is an e|rror of |
|000005a0| 6d 69 6e 65 20 72 61 74 | 68 65 72 20 74 68 61 6e |mine rat|her than|
|000005b0| 0a 74 68 65 20 63 6f 6d | 70 69 6c 65 72 73 2e 20 |.the com|pilers. |
|000005c0| 3a 29 20 20 41 6e 64 20 | 79 65 74 2c 20 74 68 69 |:) And |yet, thi|
|000005d0| 73 20 6c 6f 6f 6b 73 20 | 61 6c 6d 6f 73 74 20 69 |s looks |almost i|
|000005e0| 64 65 6e 74 69 63 61 6c | 20 74 6f 20 65 78 61 6d |dentical| to exam|
|000005f0| 70 6c 65 73 20 6f 66 20 | 74 68 69 73 0a 49 20 73 |ples of |this.I s|
|00000600| 65 65 20 69 6e 20 73 6f | 6d 65 20 43 2b 2b 20 62 |ee in so|me C++ b|
|00000610| 6f 6f 6b 73 20 49 20 61 | 6d 20 72 65 61 64 69 6e |ooks I a|m readin|
|00000620| 67 2e 20 20 41 6e 79 6f | 6e 65 20 68 61 76 65 20 |g. Anyo|ne have |
|00000630| 61 6e 79 20 61 64 76 69 | 63 65 3f 0a 0a 50 6c 65 |any advi|ce?..Ple|
|00000640| 61 73 65 20 64 69 72 65 | 63 74 20 72 65 70 6c 69 |ase dire|ct repli|
|00000650| 65 73 20 74 6f 20 79 61 | 6d 69 40 64 69 67 65 78 |es to ya|mi@digex|
|00000660| 2e 6e 65 74 2c 20 61 6e | 64 20 74 6f 20 74 68 69 |.net, an|d to thi|
|00000670| 73 20 67 72 6f 75 70 20 | 69 66 20 79 6f 75 20 77 |s group |if you w|
|00000680| 69 73 68 2e 0a 54 68 61 | 6e 6b 73 20 61 20 6c 6f |ish..Tha|nks a lo|
|00000690| 74 21 0a 0a 2d 53 74 65 | 76 65 2d 0a 0a 0a 0a 0a |t!..-Ste|ve-.....|
+--------+-------------------------+-------------------------+--------+--------+